package com.qf.controller;

import com.qf.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 千锋健哥
 */
@RestController
@RequestMapping("serviceB")
public class UserController {

    @Autowired
    private UserService userService;

    /**
     * b账户加500元
     */
    @GetMapping("/update")
    public String update() {
        userService.updateB();
        return "success";
    }
}
